<template>
    <div>
        <button @click="goTo()">
            我是bannber
        </button> 
    </div>
</template>

<script>

import { useRouter } from 'vue-router';
export default {
    name: "HomePage",
    components: {
    },
    setup(){
        const router = useRouter();
        function goTo(){
            router.push({ path: "/tabDetail" });
        }
        return{
            goTo
        };
    }
};
</script>
